/**
 * Created by Administrator on 2018/10/28.
 */
import {createStore} from 'redux';
import rootReducer from '../reducers/index.js'
export default function configureStore(initialState) {
  const store = createStore(rootReducer, initialState,
  window.devToolsExtension ? window.devToolsExtension() : undefined)
  return store
}